package com.candy.oop1;

/**
 * @author donglin
 * @Title:
 * @类名: Student
 * @date 2020/7/15
 */
public class Student1 {
    //属性私有化
    private int stuId;
    private String stuName;
    private boolean stuSex;

    private Student1() {
    }

    private Student1(int stuId, String stuName, boolean stuSex) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuSex = stuSex;
    }
//共有的getter setter方法
    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public boolean isStuSex() {
        return stuSex;
    }

    public void setStuSex(boolean stuSex) {
        this.stuSex = stuSex;
    }

    public static void sayHi(){
        System.out.println("大家好");
    }


}
